<style>
#ugovoriUlazReport label{
	width:auto;
	padding-top:7px;
	display:block;
	float:left;
	text-align:right;
}
#ugovoriUlazReport form.area1{
	padding:3px;
	float:left;
}
#ugovoriUlazReport form.area1 fieldset{
	float:left;
	border:1px solid #aaa;
}
#ugovoriUlazReport input#filter_btn,
#ugovoriUlazReport input#clear_btn{
	margin:5px 0px;
}
#ugovoriUlazReport .area img{
	margin-right:20px;
}
#ugovoriUlazReport table tr.head td{
	background:Highlight;
	color:HighlightText;
	font-weight:bolder;
	text-align:center;
}
#ugovoriUlazReport table tr:hover{
	background:#fff;
}
#ugovoriUlazReport table tr td{
	border-right:1px solid #aaa;
	border-bottom:1px solid #aaa;
	padding:10px 5px 3px 5px;
	vertical-align:top;
}
#ugovoriUlazReport table tr td:first-child{
	border-left:1px solid #aaa;
}
#ugovoriUlazReport table tr td:last-child a{
	display:block;
	padding:2px;
}
#ugovoriUlazReport div#filter_status{
	font-size:10px;
	margin:0px 10px;
	float:left;
	color:#aaa;
}
#ugovoriUlazReport table td a#deleteItem{
	width:12px;
	height:12px;
	position:relative;
	font-size:9px;
	top:-8px;
	left:-2px;
	margin:0px 0px -5px 0px;
	text-decoration:none;
	color:#F00;
	background:none;
	overflow:hidden;
}
#ugovoriUlazReport table td input[type=button].vratiUgovorBtn{
	background-image:url(gui/icons/ugovor_radnik.gif);
	background-repeat:no-repeat;
	background-position: 3px center;
	padding-left:24px;
	-moz-opacity:0.2;
	cursor:pointer;
}
#ugovoriUlazReport table td:hover input[type=button].vratiUgovorBtn{
	-moz-opacity:1;
}
#ugovoriUlazReport table tr:hover td a#deleteItem{
	background:none;
}
#ugovoriUlazReport table td a#deleteItem img{
	-moz-opacity:0.2;
}
#ugovoriUlazReport table tr:hover td a#deleteItem img{
	-moz-opacity:1;
}
</style>
<div id="ugovoriUlazReport">
<h1>Ugovori koji su ušli u firmu</h1>
<form class="area1" method="post" action="javascript:void(0)" onSubmit="filterReport(document.getElementById('filter_btn'),2)">
	<fieldset>
	  <legend>Datum ulaza:</legend>
		<label for="start_date">OD:</label><input maxlength="10" name="start_date" type="text" id="start_date" value="{{$start}}" rule="^(\d{2}\.\d{2}\.\d{4}){0,1}$" />
		<img src="gui/icon_datepicker.gif" class="datePicker" title="Odaberi datum" onClick="displayDatePicker('start_date',this)" /><br clear="all" />
		<label for="end_date">DO:</label><input maxlength="10" name="end_date" type="text" id="end_date" value="{{$end}}" rule="^(\d{2}\.\d{2}\.\d{4}){0,1}$" />
		<img src="gui/icon_datepicker.gif" class="datePicker" title="Odaberi datum" onClick="displayDatePicker('end_date',this)" />
	</fieldset>
	<fieldset>
	  <legend>Datum ugovora:</legend>
		<label for="start_date_ugovor">OD:</label><input maxlength="10" name="start_date_ugovor" type="text" id="start_date_ugovor" value="{{$start_ugo}}" rule="^(\d{2}\.\d{2}\.\d{4}){0,1}$" />
		<img src="gui/icon_datepicker.gif" class="datePicker" title="Odaberi datum" onClick="displayDatePicker('start_date_ugovor',this)" /><br clear="all" />
		<label for="end_date_ugovor">DO:</label><input maxlength="10" name="end_date_ugovor" type="text" id="end_date_ugovor" value="{{$end_ugo}}" rule="^(\d{2}\.\d{2}\.\d{4}){0,1}$" />
		<img src="gui/icon_datepicker.gif" class="datePicker" title="Odaberi datum" onClick="displayDatePicker('end_date_ugovor',this)" />
	</fieldset>
	<div style="float:left;">
		<div style="float:left;">
			<label style="width:80px;" for="filter_komitent">Komitent:</label><input type="text" value="{{$filter_komitent}}" name="filter_komitent" id="filter_komitent" /><br clear="all" />
			<label style="width:80px;" for="filter_br_ugo">Broj ugovora:</label><input value="{{$filter_br_ugo}}" type="text" maxlength="10" name="filter_br_ugo" id="filter_br_ugo" />
			<br clear="all" />
			<label style="width:80px;" for="filter_radnik">Radnik:</label><input value="{{$filter_radnik}}" rule="^[^\d]{0,}$" type="text" name="filter_radnik" id="filter_radnik" /><br clear="all" />
		</div>
		<div style="float:left;">
			<label style="width:55px;" for="filter_materijal">Materijal:</label>
			<select name="filter_materijal">
				<option value="0"></option>
				<option {{$sel_mat_0}} value="1">nema</option>
				<option {{$sel_mat_1}} value="2">ima</option>
			</select><br clear="all" />
			<label style="width:55px;" for="filter_storno">Storno:</label>
			<select name="filter_storno">
				<option value="0"></option>
				<option {{$sel_stor_0}} value="1">ne</option>
				<option {{$sel_stor_1}} value="2">da</option>
			</select><br clear="all" />
			<label style="width:55px;" for="filter_komentar">Komentar:</label>
			<textarea name="filter_komentar" id="filter_komentar">{{$filter_komentar}}</textarea>
		</div>
		<div style="float:left;">
			<input id="clear_btn" type="button" onClick="clearFilter(this,'filter_btn')" value="CLEAR" /><br clear="all" />
			<input id="filter_btn" type="submit" value="FILTER" />
		</div>
	</div>
</form>
<p style="float:left; margin:40px 0px 0px 0px; color:#777; padding:0px 10px; font-size:11px;{{$info_display}}">
<input type="button" class="excel" value="Export" onclick="exportCSV(document.getElementById('ugovoriUlazTable'),'')" /><br clear="all" />
{{$affected_rows}}
</p>
<br clear="all" />
<div class="area">
{{$nores_start_comment}}
<table id="ugovoriUlazTable">
<tr class="head">
	<td>datum ulaza</td>
	<td>broj ugovora</td>
	<td>datum ugovora</td>
	<td>predračuna</td>
	<td>radnik</td>
	<td>komitent</td>
	<td>kampanja</td>
	<td>artikl</td>
	<td>cena</td>
	<td>materijal</td>
	<td>komentar</td>
	<td>storno</td>
	<td>vraćen radniku </td>
</tr>
{{%loop start id}}
<tr>
	<td>{{$delete_item}}{{$dat_ulaz}}</td>
	<td>{{$br_ugo}}&nbsp;</td>
	<td>{{$dat_ugo}}</td>
	<td>{{$kol_pr}}</td>
	<td>{{$radnik}}</td>
	<td>{{$komitent}}</td>
	<td>{{$kampanja}}</td>
	<td>{{$artikl}}</td>
	<td>{{$iznos}}</td>
	<td>{{$materijal}}</td>
	<td>{{$komentar}}</td>
	<td>{{$storno}}</td>
	<td class="last">{{$vracen}}</td>
</tr>
{{%loop end}}
</table>
{{$nores_end_comment}}
{{$status}}
</div>
</div>
<script>
setInputRules();
</script>